Google Maps delivery link 2.3

What it does:
A button will be added below the Delivery Address in Admin - Orders
It allows with one click to open Google Maps in a new browser tab and pass the delivery address into a search query.
Like this you'll save some copy paste to check if the address is accurate.


Compatibility: Phoenix 1.0.7.0+.

            
NOTE: the $replace _array includes typical spanish street address cleanup. It removes stairs, floor and door numbering and other unnecessary details which prevent Google Maps to find the address.
You can add more strings which should be stripped off for your needs.

Just edit the replace array at line 33 in:
includes/hooks/admin/orders/deliveryLink.php
 
That's it.



Change log:
Version 2.3:
- updated for PHP 8.5 compatibility
- tested with Phoenix 1.1.0.7 and PHP 8.5

Version 2.2:
- updated jquery script to plain javascript
- tested with Phoenix 1.0.9.9 and PHP 8.3

Version 2.1:
- fixed undefined error if no order is selected
- use hook method only if action is edit
- tested with Phoenix 1.0.8.16 and PHP 8.0

Update 2.0 to 2.1:
Upload and replace:
includes/hooks/admin/orders/deliveryLink.php

